{if $msg_array neq ""}
	{section name=themessage loop=$msg_array}
		<a id="m{$msg_array[themessage].id}"></a>
		<div id="msg_wrap-{$msg_array[themessage].id}" style="display:">
			<div id="comment-head">
				{if $msg_array[themessage].readed eq 0}<b> <img src="{$my_pligg_base}/templates/{$the_template}/images/msg_new.png" align="absmiddle" /> </b>&nbsp;&nbsp;&nbsp;&nbsp;{/if}
				<a href="{$msg_array[themessage].sender_view_url}">{if $UseAvatars neq "0"}<span id="msg_avatar-{$msg_array[themessage].id}"> <img src="{$msg_array[themessage].Avatar_ImgSrc}" align="absmiddle"/></span>{/if}
				
				{$msg_array[themessage].sender_names}</a> 于{$msg_array[themessage].date}发送&nbsp;&nbsp;&nbsp;&nbsp;{$msg_array[themessage].title}
			</div>

			<div style="overflow:scroll;" class="comment-body" id="msgbody{$msg_array[themessage].id}"> 
				<span id = "msg_content-{$msg_array[themessage].id}"> <br />{$msg_array[themessage].body}</span> 
			</div>
			
			<div class="comment-info"> 
				<span id="comment-subhead">	
					<span id="reply-but-{$msg_array[themessage].id}">	</span>  				</span>
				<a class="ratemey" href="javascript://" onClick="var replydisplay=document.getElementById('reply-{$msg_array[themessage].id}').style.display ? '' : 'none'; document.getElementById('reply-{$msg_array[themessage].id}').style.display = replydisplay;" style='text-decoration:none;'><span class="rateme">回复</span></a>
				<a class="ratemey" href="javascript://" onclick="delmsg({$msg_array[themessage].id},'inbox')"><span class="rateme">删除</span></a>
			</div>
		
			<span id="reply_msg_hint-{$msg_array[themessage].id}"></span>
			<div id="reply-{$msg_array[themessage].id}" style="display:none;" align="left">
				<fieldset><legend style="font-size:16px">回复</legend>
					<textarea name="reply_msg_content-{$msg_array[themessage].id}" id="reply_msg_content-{$msg_array[themessage].id}" rows="6" cols="55"/></textarea><br/>			<br>
					<input type="button" value="发送" onclick="replymsg({$msg_array[themessage].id},'{$msg_array[themessage].title}',{$msg_array[themessage].receiver},{$msg_array[themessage].sender},{$senderlevel})" class="log2"/>		
				</fieldset>
			</div>
		
			<br>
		</div>
	{/section}
	
<form action="" method="POST">
	<input type="hidden" id="cur_page" name="cur_page" value={$cur_page} />
	<input type="hidden" id="page" name="page" value={$cur_page} />
{php} 
Global $db, $main_smarty, $rows, $top_users_size, $offset;
submit_user_do_pages($rows, $top_users_size, ''); 
{/php}
</form>
{else}
	<span>没有信件</span>	
{/if}
	



